﻿using System;
using System.Drawing;

namespace ReAnimation.Domain
{
    [Serializable]
    public class AtomDescription
    {
        public virtual String Name { get; set; }
        public virtual float Radius { get; set; }
        public virtual Color Color { get; set; }

        public override int GetHashCode()
        {
            return Name.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if (obj == this) return true;
            if (!(obj is AtomDescription)) return false;

            return Name.Equals((obj as AtomDescription).Name);
        }
    }
}